<div class="form blue">

{WidgetActiveForm id="pet-form" enableAjaxValidation=0 model=$model}

	<p class="note"><span class="required">*</span> - поля обязательные для заполнения.</p>

	{afErrorSummary}

	<div class="row">
                {afLabelEx property='nickname'}
                {array assign="attr" size=25 maxlength=25 class="small"}
                {afTextField property='nickname' attr=$attr}
                {afError property='nickname'}
	</div>

	<div class="row">
                {afLabelEx property='type'}
                {array assign="dataSelect" 1='кошка' 2='собака'}
                {*afDropDownList property='type' data=$dataSelect*}
                {array assign="attr" maxlength=100 class="small"}
                {afTextField property='type' attr=$attr}
                {afError property='type'}
	</div>

	<div class="row">
                {afLabelEx property='race'}
                {array assign="attr" maxlength=100 class="small"}
                {afTextField property='race' attr=$attr}
                {afError property='race'}
	</div>

	<div class="row">
                {afLabelEx property='birthdate'}
                {include file="../layouts/include/datePicker.tpl" model=$model attribute='birthdate'}
                {afError property='birthdate'}
	</div>

	<div class="row">
                {afLabelEx property='color'}
                {array assign="attr" size=60 maxlength=200}
                {afTextField property='color' attr=$attr}
                {afError property='color'}
	</div>

	<div class="row">
                {afLabelEx property='signs'}
                {array assign="attr" rows=6 cols=50}
                {afTextArea property='signs' attr=$attr}
                {afError property='signs'}
	</div>

	<div class="row">
                {afLabelEx property='character'}
                {array assign="attr" rows=6 cols=50}
                {afTextArea property='character' attr=$attr}
                {afError property='character'}
	</div>

	<div class="row">
                {afLabelEx property='toys'}
                {array assign="attr" rows=6 cols=50}
                {afTextArea property='toys' attr=$attr}
                {afError property='toys'}
	</div>

	<div class="row">
                {afLabelEx property='games'}
                {array assign="attr" rows=6 cols=50}
                {afTextArea property='games' attr=$attr}
                {afError property='games'}
	</div>

	<div class="row">
                {afLabelEx property='like'}
                {array assign="attr" rows=6 cols=50}
                {afTextArea property='like' attr=$attr}
                {afError property='like'}
	</div>

	<div class="row">
                {afLabelEx property='dislike'}
                {array assign="attr" rows=6 cols=50}
                {afTextArea property='dislike' attr=$attr}
                {afError property='dislike'}
	</div>

	<div class="row">
                {afLabelEx property='awards'}
                {array assign="attr" rows=6 cols=50}
                {afTextArea property='awards' attr=$attr}
                {afError property='awards'}
	</div>

	<div class="row">
                {afLabelEx property='castrated'}
                {afCheckBox property='castrated'}
                {afError property='castrated'}
	</div>

	<div class="row">
                {afLabelEx property='reproduction'}
                {afCheckBox property='reproduction'}
                {afError property='reproduction'}
	</div>

	<div class="row">
                {afLabelEx property='place'}
                {array assign="attr" rows=6 cols=50}
                {afTextArea property='place' attr=$attr}
                {afError property='place'}
	</div>

	<div class="row">
                {afLabelEx property='about'}
                {array assign="attr" rows=6 cols=50}
                {afTextArea property='about' attr=$attr}
                {afError property='about'}
	</div>

        {include file="../layouts/include/modelSaveBtn.tpl"}

{/WidgetActiveForm}

<div class="clear-floating"></div>

</div><!-- form -->